<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台用户管理</title>
</head>
<script>
var baseUrl = "<?php echo $this->baseUrl;?>";
</script>
<link href="<?php echo $this->baseUrl;?>/admincss/mstyle.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/jquery.pack.js" /></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/user.js" /></script>

<body>
<table class="tableA" width="100%" border="1">
  <tr class="tr_title">
    <td width="5%" nowrap="nowrap">编号</td>
    <td width="6%"  nowrap="nowrap">操作</td>
    <td width="6%"  nowrap="nowrap">用户</td>
    <td  nowrap="nowrap">文件名</td>
    <td width="6%"  nowrap="nowrap">时间</td>
  </tr>
<!--
<?php
foreach ($this->list as $v){
$surl=$this->url($this->baseUrl, 'manage', 'ushow', 'uid='.$v['uid']. '&mid=' . $this->mid);
$surl =  $surl ."&TB_iframe=true&height=400&width=800&modal=false";
$durl = $this->baseUrl . $v['filename'];
$v['filename'] = basename($v['filename']);
$delurl = $this->url($this->baseUrl, 'manage', 'file', 'mid=' . $this->mid . '&uuid=' . $this->uuid . '&fid=' . $v['fid']);
$alldown = $this->url($this->baseUrl, 'manage', 'allfile', 'mid=' . $this->mid . '&uuid=' . $this->uuid);

print <<<EOT
-->
  <tr>
    <td nowrap="nowrap">{$v['fid']}</td>
    <td nowrap="nowrap"><a href="{$delurl}" onclick="javascript:return window.confirm('确认删除fid={$v['fid']}');">删除</a>
    </td>
    <td nowrap="nowrap"><a href="javascript:void(0);" onclick="javascript:parent.tbshow('','{$surl}')">{$v['name']}</a></td>
    <td nowrap="nowrap"><a href="{$durl}" target="_blank">{$v['filename']}</a></td>
    <td nowrap="nowrap">{$v['fdate']}</td>
  </tr>
<!--
EOT;
}

$ext = "&mid=" . $this->mid . '&uuid=' . $this->uuid;
$indexurl =$this->url($this->fullUrl, 'manage', 'file', 'nowp=1' . $ext);
$nexturl = $this->url($this->fullUrl, 'manage', 'file', 'nowp='.$this->page['next'] . $ext);
$preurl = $this->url($this->fullUrl, 'manage', 'file', 'nowp='.$this->page['previous'] . $ext);
$lasturl = $this->url($this->fullUrl, 'manage', 'file', 'nowp='.$this->page['totalpage'] . $ext);
print <<<EOT
-->
  <tr>
    <td colspan="12"><a href="{$alldown}" target="_blank">批量下载</a>&nbsp;共{$this->page['totalnum']}个文件 {$this->page['nowp']}/{$this->page ['totalpage']}
<a href="{$indexurl}">首页</a>
<a href="{$nexturl}">下一页</a>
<a href="{$preurl}">前一页</a>
<a href="{$lasturl}">末页</a></td>
  </tr>
<!--
EOT;
?>-->
</table>
</body>
</html>
